<%@page import="itpenguin.common.Util"%>
<%@page import="itpenguin.entities.Series"%>
<%@page import="itpenguin.entities.Article"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page pageEncoding="UTF-8"%>

<div style="text-align:center; margin-top:1em;">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-2855357403949640";
/* IT Penguin Wide */
google_ad_slot = "4581223538";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="top">
	<div class="greeting">
	${greeting}
	</div>
	<nav>
		<h1>What's new</h1>
		<ul>
			<c:forEach var="newArticle" items="${articleList}">
				<%
					Article newArticle = (Article)pageContext.getAttribute("newArticle");
					Series sr = Util.GetSeries(newArticle.getParentId());
					pageContext.setAttribute("series", sr);
				%>
				<li>
				
				<fmt:formatDate var="utcDt" value="${newArticle.published}" pattern="yyyy-MM-dd'T'HH:mm:ss" timeZone="UTC"/>
				<time pubdate="pubdate" datetime="${utcDt }">
					<fmt:formatDate value="${newArticle.published}" pattern="yyyy/MM/dd" timeZone="JST" />
				</time>
				
				<span class="series">${series.title}&nbsp;</span>
				<a href="/${newArticle.contextName}/${newArticle.id}">#${newArticle.partNumber} ${newArticle.title}</a></li>
			</c:forEach>
		</ul>
	</nav>
</div>
<div style="border:dotted 1px #015b9a; margin:2em auto 0; width:728px; height:15px; padding:1em 0;">
	<script type="text/javascript"><!--
	google_ad_client = "pub-2855357403949640";
	/* 728x15, IT Penguin Link Unit */
	google_ad_slot = "4541719292";
	google_ad_width = 728;
	google_ad_height = 15;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
</div>
